import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
    name: 'startWith'
})
export class StartWithPipe implements PipeTransform {
    transform(value: any, args?: any): any {
        return value && value.indexOf(args) === 0;
    }
}
